package com.example.demo.redis;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Service;

@Service
public class RedisReceiver1 {

    public void receiveMessage(String message) {
        System.out.println("topic:newMsg的消息："+message);
        //这里是收到通道的消息之后执行的方法
    }

}
